/**
 * 定义前端路由
 */
var M = require('./module.js');
var html_404 = require('../modules/common/404.html');

//路由配置
var routes = {
    "/": M.index_enter.initialization
};

var router = Router(routes);
router.configure({
    notfound: function() {
        if (this.path.indexOf('_target_') != -1) return false;
        $('#main').html(html_404);
    },
    after: function() {},
    before: function() {}
});

router.init('/');